package com.syq;

import java.util.function.Consumer;
import java.util.function.Supplier;

/**
 * @author Sun Yueqi
 * @version 1.00
 * @time 2022/6/8 19:13
 */
public class TestSupplier {
    public static void main(String[] args) {
//        Supplier supplier=new Supplier() {
////            @Override
////            public Object get() {
////                return "syq";
////            }
////        };
////        System.err.println(supplier.get());

        Supplier<String> supplier= ()->"123456";
        System.err.println(supplier.get());
    }
}
